//
//  FlickrController.h
//  Words2
//
//  Created by Mathieu on 27/09/06.
//  Copyright 2006 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <ObjectiveFlickr/ObjectiveFlickr.h>

@class ImagesController;
@class WordMO;
@class WordArrayController;

@interface FlickrController : NSObject {
	OFFlickrContext *appContext;
//	OFFlickrRESTRequest *request;
	OFFlickrInvocation *apicaller;
    IBOutlet id authMsg; //use to display the connection status
	
    IBOutlet id progressIndicator;
   
	IBOutlet NSImageView *imageView;
	
	OFFlickrContext* flickrContext;
	IBOutlet NSTabView *imagesAreaTabView;
	IBOutlet ImagesController *imageArrayController;
	IBOutlet WordArrayController *wordArrayController;

}

//Words Interface
//Returns a set of NSImages for the tags in the array
- (IBAction)getImages:(id)sender; 
- (void)setImagesForWord:(WordMO *)word;

- (OFFlickrContext*)flickrContext;
- (IBAction)startSearch:(id)sender;

@end
